package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;


 
public class MemberCardCostCountVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	 
	private Integer id;

	 
	private MemberCardVO memberCard;

	 
	private ProductVO product;

 
	private Integer count;
	
	private Integer productId;
	private String productName;

	/**
	 * 
	 */
	public MemberCardCostCountVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	public MemberCardVO getMemberCard() {
		return memberCard;
	}

	public void setMemberCard(MemberCardVO memberCard) {
		this.memberCard = memberCard;
	}

	public ProductVO getProduct() {
		return product;
	}

	public void setProduct(ProductVO product) {
		this.product = product;
	}

	/** 
	 * @return the count
	 */ 
	public Integer getCount() {
		return count;
	}

	/** 
	 * @param count the count to set 
	 */ 
	public void setCount(Integer count) {
		this.count = count;
	}

	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		if(productId != null){
			ProductVO product = new ProductVO(productId);
			this.product = product;
		}
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	
}
